//
//  CunchuTableViewCell.m
//  Vest_native
//
//  Created by WangZhenyu on 2017/10/5.
//  Copyright © 2017年 WangZhenyu. All rights reserved.
//

#import "CunchuTableViewCell.h"
#import "AppDelegate.h"
#import "WebShowViewController.h"

@interface CunchuTableViewCell(){
    NSDictionary *toolsConfig;
}
@end

@implementation CunchuTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setContentConfig:(NSDictionary *)dic{
    toolsConfig = dic;
}


- (IBAction)onePress {
    [self jumpWebViewControllerKey:[[toolsConfig objectForKey:@"cunchu"] objectForKey:@"hqck"]];
}

- (IBAction)twoPress {
    [self jumpWebViewControllerKey:[[toolsConfig objectForKey:@"cunchu"] objectForKey:@"tzck"]];
}

- (IBAction)threePress {
    [self jumpWebViewControllerKey:[[toolsConfig objectForKey:@"cunchu"] objectForKey:@"zclq"]];
}

- (IBAction)fourPress {
    [self jumpWebViewControllerKey:[[toolsConfig objectForKey:@"cunchu"] objectForKey:@"zczq"]];
}

- (IBAction)fivePress {
    [self jumpWebViewControllerKey:[[toolsConfig objectForKey:@"cunchu"] objectForKey:@"lczq"]];
}

- (IBAction)sixPress {
    [self jumpWebViewControllerKey:[[toolsConfig objectForKey:@"cunchu"] objectForKey:@"zjck"]];
}

- (void)jumpWebViewControllerKey:(NSString *)key{
    WebShowViewController *viewCon = [[WebShowViewController alloc] initWithNibName:@"WebShowViewController" bundle:nil];
    viewCon.urlStr = key;
    AppDelegate *del = (AppDelegate*)[[UIApplication sharedApplication] delegate];
    [del.navigationController pushViewController:viewCon animated:YES];
}

@end
